package cn.xsly.ymcc.fegin;


import cn.xsly.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-media",fallbackFactory = MediaFeginFactory.class)
public interface MediaFeginClient {
    @RequestMapping(value = "/mediaFile/selectByCourseId/{id}", method = RequestMethod.GET)
    public JSONResult selectByCourseId(@PathVariable("id") Long id);

}
